package com.example.jwt.main.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.core.RedisTemplate;

import javax.annotation.Resource;

/**
 * @description:
 * @author: xiaohonggong
 * @date: Created in 2024/1/26 下午1:38
 */
@Configuration
public class Config {
    /**
     * 模板
     */
    @Resource
    private RedisTemplate redisTemplate;


    @Bean
    RedisTemplate getRedisTemplate(){
        return redisTemplate;
    }}



